<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:head>
    	<link rel="icon" type="image/png" href="../../images/favicon.ico" />
        <title>JSMS | Admin Login</title>
    </h:head>
	<body style="background-color: BBB;
    		background-image: url('../../graphic_elements/pattern/pattern_054.png');">
		<center><BR/><img src='../../../images/JSMC.png' height="115" /></center><BR />
		<center><img src='../../../images/form_BG2.png' /></center>
		<h:panelGroup style="position:absolute; left:35%; top:45%;">
			<h:form>
			<table>
				<tr>
					<td><h:outputText value="Email: " /></td>

					<td><p:inputText id="email" value="#{loginBean.admin.email}"/></td>
				</tr>
				<tr></tr>
				<tr>
					<td><h:outputText value="Password: " /></td>
					<td><p:password id="pw" feedback="false" value="#{loginBean.admin.password}"/> </td>
				</tr>
				<tr>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td style="text-align: right; text-transform: uppercase;">
                     	<p:commandButton ajax="false" id="login" value="login" type="submit" action="#{loginBean.authenticateAdmin}" /> 
                    </td>
				</tr>
			</table>
			</h:form>
		</h:panelGroup>
	</body>
</html>